/*
* Copyright 2025 NXP
* NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
* accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
* activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
* comply with and are bound by, such license terms.  If you do not agree to be bound by the applicable license
* terms, then you may not retain, install, activate or otherwise use the software.
*/

#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "widgets_init.h"
#include "custom.h"



void setup_scr_fitness(lv_ui *ui)
{
    //Write codes fitness
    ui->fitness = lv_obj_create(NULL);
    lv_obj_set_size(ui->fitness, 480, 480);
    lv_obj_set_scrollbar_mode(ui->fitness, LV_SCROLLBAR_MODE_OFF);

    //Write style for fitness, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->fitness, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_image_src(ui->fitness, "S:/res/image/img_bg_2.bin", LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_image_opa(ui->fitness, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_image_recolor_opa(ui->fitness, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes fitness_start_icon
    ui->fitness_start_icon = lv_image_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_start_icon, 401, 83);
    lv_obj_set_size(ui->fitness_start_icon, 45, 61);
    lv_obj_add_flag(ui->fitness_start_icon, LV_OBJ_FLAG_FLOATING);
    lv_obj_add_flag(ui->fitness_start_icon, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->fitness_start_icon, "S:/res/image/text_start_stop.bin");
    lv_image_set_pivot(ui->fitness_start_icon, 50,50);
    lv_image_set_rotation(ui->fitness_start_icon, 0);

    //Write style for fitness_start_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->fitness_start_icon, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->fitness_start_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes fitness_title
    ui->fitness_title = lv_label_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_title, 0, -61);
    lv_obj_set_size(ui->fitness_title, 480, 90);
    lv_obj_add_flag(ui->fitness_title, LV_OBJ_FLAG_FLOATING);
    lv_label_set_text(ui->fitness_title, "Fitness");
    lv_label_set_long_mode(ui->fitness_title, LV_LABEL_LONG_WRAP);

    //Write style for fitness_title, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->fitness_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->fitness_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->fitness_title, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->fitness_title, lv_font_montserratMedium_28_bin, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->fitness_title, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->fitness_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->fitness_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->fitness_title, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->fitness_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->fitness_title, 27, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->fitness_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->fitness_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->fitness_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_image_src(ui->fitness_title, "S:/res/image/img_header_bg.bin", LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_image_opa(ui->fitness_title, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_image_recolor(ui->fitness_title, lv_color_hex(0x109d31), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_image_recolor_opa(ui->fitness_title, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->fitness_title, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes fitness_calorie_arc
    ui->fitness_calorie_arc = lv_arc_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_calorie_arc, 9, 71);
    lv_obj_set_size(ui->fitness_calorie_arc, 459, 459);
    lv_obj_add_flag(ui->fitness_calorie_arc, LV_OBJ_FLAG_GESTURE_BUBBLE);
    lv_arc_set_mode(ui->fitness_calorie_arc, LV_ARC_MODE_NORMAL);
    lv_arc_set_range(ui->fitness_calorie_arc, 0, 100);
    lv_arc_set_bg_angles(ui->fitness_calorie_arc, 90, 215);
    lv_arc_set_value(ui->fitness_calorie_arc, 40);
    lv_arc_set_rotation(ui->fitness_calorie_arc, 10);

    //Write style for fitness_calorie_arc, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->fitness_calorie_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->fitness_calorie_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_width(ui->fitness_calorie_arc, 15, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_opa(ui->fitness_calorie_arc, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_color(ui->fitness_calorie_arc, lv_color_hex(0x6c6967), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_rounded(ui->fitness_calorie_arc, true, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->fitness_calorie_arc, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->fitness_calorie_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->fitness_calorie_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->fitness_calorie_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->fitness_calorie_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->fitness_calorie_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for fitness_calorie_arc, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
    lv_obj_set_style_arc_width(ui->fitness_calorie_arc, 16, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_opa(ui->fitness_calorie_arc, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_color(ui->fitness_calorie_arc, lv_color_hex(0xEEC200), LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_rounded(ui->fitness_calorie_arc, true, LV_PART_INDICATOR|LV_STATE_DEFAULT);

    //Write style for fitness_calorie_arc, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->fitness_calorie_arc, 0, LV_PART_KNOB|LV_STATE_DEFAULT);

    //Write codes fitness_distance_arc
    ui->fitness_distance_arc = lv_arc_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_distance_arc, 35, 96);
    lv_obj_set_size(ui->fitness_distance_arc, 407, 407);
    lv_obj_add_flag(ui->fitness_distance_arc, LV_OBJ_FLAG_GESTURE_BUBBLE);
    lv_arc_set_mode(ui->fitness_distance_arc, LV_ARC_MODE_NORMAL);
    lv_arc_set_range(ui->fitness_distance_arc, 0, 100);
    lv_arc_set_bg_angles(ui->fitness_distance_arc, 102, 225);
    lv_arc_set_value(ui->fitness_distance_arc, 75);
    lv_arc_set_rotation(ui->fitness_distance_arc, 0);

    //Write style for fitness_distance_arc, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->fitness_distance_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->fitness_distance_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_width(ui->fitness_distance_arc, 15, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_opa(ui->fitness_distance_arc, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_color(ui->fitness_distance_arc, lv_color_hex(0x6c6967), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_rounded(ui->fitness_distance_arc, true, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->fitness_distance_arc, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->fitness_distance_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->fitness_distance_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->fitness_distance_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->fitness_distance_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->fitness_distance_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for fitness_distance_arc, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
    lv_obj_set_style_arc_width(ui->fitness_distance_arc, 16, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_opa(ui->fitness_distance_arc, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_color(ui->fitness_distance_arc, lv_color_hex(0x00ce10), LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_rounded(ui->fitness_distance_arc, true, LV_PART_INDICATOR|LV_STATE_DEFAULT);

    //Write style for fitness_distance_arc, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->fitness_distance_arc, 0, LV_PART_KNOB|LV_STATE_DEFAULT);

    //Write codes fitness_duration_arc
    ui->fitness_duration_arc = lv_arc_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_duration_arc, 61, 122);
    lv_obj_set_size(ui->fitness_duration_arc, 356, 356);
    lv_obj_add_flag(ui->fitness_duration_arc, LV_OBJ_FLAG_GESTURE_BUBBLE);
    lv_arc_set_mode(ui->fitness_duration_arc, LV_ARC_MODE_NORMAL);
    lv_arc_set_range(ui->fitness_duration_arc, 0, 100);
    lv_arc_set_bg_angles(ui->fitness_duration_arc, 103, 225);
    lv_arc_set_value(ui->fitness_duration_arc, 50);
    lv_arc_set_rotation(ui->fitness_duration_arc, 0);

    //Write style for fitness_duration_arc, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->fitness_duration_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->fitness_duration_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_width(ui->fitness_duration_arc, 15, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_opa(ui->fitness_duration_arc, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_color(ui->fitness_duration_arc, lv_color_hex(0x6c6967), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_rounded(ui->fitness_duration_arc, true, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->fitness_duration_arc, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->fitness_duration_arc, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->fitness_duration_arc, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->fitness_duration_arc, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->fitness_duration_arc, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->fitness_duration_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for fitness_duration_arc, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
    lv_obj_set_style_arc_width(ui->fitness_duration_arc, 15, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_opa(ui->fitness_duration_arc, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_color(ui->fitness_duration_arc, lv_color_hex(0x35a7fb), LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_rounded(ui->fitness_duration_arc, true, LV_PART_INDICATOR|LV_STATE_DEFAULT);

    //Write style for fitness_duration_arc, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->fitness_duration_arc, 0, LV_PART_KNOB|LV_STATE_DEFAULT);

    //Write codes fitness_pluse_arc
    ui->fitness_pluse_arc = lv_arc_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_pluse_arc, 86, 148);
    lv_obj_set_size(ui->fitness_pluse_arc, 303, 303);
    lv_obj_add_flag(ui->fitness_pluse_arc, LV_OBJ_FLAG_GESTURE_BUBBLE);
    lv_arc_set_mode(ui->fitness_pluse_arc, LV_ARC_MODE_NORMAL);
    lv_arc_set_range(ui->fitness_pluse_arc, 0, 100);
    lv_arc_set_bg_angles(ui->fitness_pluse_arc, 105, 225);
    lv_arc_set_value(ui->fitness_pluse_arc, 80);
    lv_arc_set_rotation(ui->fitness_pluse_arc, 0);

    //Write style for fitness_pluse_arc, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->fitness_pluse_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->fitness_pluse_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_width(ui->fitness_pluse_arc, 15, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_opa(ui->fitness_pluse_arc, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_color(ui->fitness_pluse_arc, lv_color_hex(0x6c6967), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_rounded(ui->fitness_pluse_arc, true, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->fitness_pluse_arc, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->fitness_pluse_arc, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->fitness_pluse_arc, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->fitness_pluse_arc, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->fitness_pluse_arc, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->fitness_pluse_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for fitness_pluse_arc, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
    lv_obj_set_style_arc_width(ui->fitness_pluse_arc, 15, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_opa(ui->fitness_pluse_arc, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_color(ui->fitness_pluse_arc, lv_color_hex(0xed0b6d), LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_rounded(ui->fitness_pluse_arc, true, LV_PART_INDICATOR|LV_STATE_DEFAULT);

    //Write style for fitness_pluse_arc, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->fitness_pluse_arc, 0, LV_PART_KNOB|LV_STATE_DEFAULT);

    //Write codes fitness_pluse_icon
    ui->fitness_pluse_icon = lv_image_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_pluse_icon, 240, 134);
    lv_obj_set_size(ui->fitness_pluse_icon, 29, 25);
    lv_obj_add_flag(ui->fitness_pluse_icon, LV_OBJ_FLAG_GESTURE_BUBBLE);
    lv_obj_add_flag(ui->fitness_pluse_icon, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->fitness_pluse_icon, "S:/res/image/icn_small_pulse.bin");
    lv_image_set_pivot(ui->fitness_pluse_icon, 50,50);
    lv_image_set_rotation(ui->fitness_pluse_icon, 0);

    //Write style for fitness_pluse_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->fitness_pluse_icon, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->fitness_pluse_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes fitness_pulse_text
    ui->fitness_pulse_text = lv_label_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_pulse_text, 287, 113);
    lv_obj_set_size(ui->fitness_pulse_text, 100, 19);
    lv_label_set_text(ui->fitness_pulse_text, "PULSE");
    lv_label_set_long_mode(ui->fitness_pulse_text, LV_LABEL_LONG_WRAP);

    //Write style for fitness_pulse_text, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->fitness_pulse_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->fitness_pulse_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->fitness_pulse_text, lv_color_hex(0x757575), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->fitness_pulse_text, lv_font_montserratMedium_18_bin, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->fitness_pulse_text, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->fitness_pulse_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->fitness_pulse_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->fitness_pulse_text, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->fitness_pulse_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->fitness_pulse_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->fitness_pulse_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->fitness_pulse_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->fitness_pulse_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->fitness_pulse_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes fitness_pulse_value
    ui->fitness_pulse_value = lv_label_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_pulse_value, 287, 134);
    lv_obj_set_size(ui->fitness_pulse_value, 77, 36);
    lv_label_set_text(ui->fitness_pulse_value, "128");
    lv_label_set_long_mode(ui->fitness_pulse_value, LV_LABEL_LONG_WRAP);

    //Write style for fitness_pulse_value, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->fitness_pulse_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->fitness_pulse_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->fitness_pulse_value, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->fitness_pulse_value, lv_font_montserratMedium_35_bin, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->fitness_pulse_value, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->fitness_pulse_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->fitness_pulse_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->fitness_pulse_value, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->fitness_pulse_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->fitness_pulse_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->fitness_pulse_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->fitness_pulse_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->fitness_pulse_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->fitness_pulse_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes fitness_duration_icon
    ui->fitness_duration_icon = lv_image_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_duration_icon, 240, 220);
    lv_obj_set_size(ui->fitness_duration_icon, 29, 29);
    lv_obj_add_flag(ui->fitness_duration_icon, LV_OBJ_FLAG_GESTURE_BUBBLE);
    lv_obj_add_flag(ui->fitness_duration_icon, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->fitness_duration_icon, "S:/res/image/icn_small_time.bin");
    lv_image_set_pivot(ui->fitness_duration_icon, 50,50);
    lv_image_set_rotation(ui->fitness_duration_icon, 0);

    //Write style for fitness_duration_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->fitness_duration_icon, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->fitness_duration_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes fitness_distance_value
    ui->fitness_distance_value = lv_label_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_distance_value, 287, 302);
    lv_obj_set_size(ui->fitness_distance_value, 101, 36);
    lv_label_set_text(ui->fitness_distance_value, "1223");
    lv_label_set_long_mode(ui->fitness_distance_value, LV_LABEL_LONG_WRAP);

    //Write style for fitness_distance_value, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->fitness_distance_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->fitness_distance_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->fitness_distance_value, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->fitness_distance_value, lv_font_montserratMedium_35_bin, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->fitness_distance_value, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->fitness_distance_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->fitness_distance_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->fitness_distance_value, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->fitness_distance_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->fitness_distance_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->fitness_distance_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->fitness_distance_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->fitness_distance_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->fitness_distance_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes fitness_duration_text
    ui->fitness_duration_text = lv_label_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_duration_text, 287, 194);
    lv_obj_set_size(ui->fitness_duration_text, 129, 19);
    lv_label_set_text(ui->fitness_duration_text, "DURATION");
    lv_label_set_long_mode(ui->fitness_duration_text, LV_LABEL_LONG_WRAP);

    //Write style for fitness_duration_text, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->fitness_duration_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->fitness_duration_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->fitness_duration_text, lv_color_hex(0x757575), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->fitness_duration_text, lv_font_montserratMedium_18_bin, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->fitness_duration_text, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->fitness_duration_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->fitness_duration_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->fitness_duration_text, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->fitness_duration_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->fitness_duration_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->fitness_duration_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->fitness_duration_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->fitness_duration_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->fitness_duration_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes fitness_distance_icon
    ui->fitness_distance_icon = lv_image_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_distance_icon, 240, 302);
    lv_obj_set_size(ui->fitness_distance_icon, 22, 29);
    lv_obj_add_flag(ui->fitness_distance_icon, LV_OBJ_FLAG_GESTURE_BUBBLE);
    lv_obj_add_flag(ui->fitness_distance_icon, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->fitness_distance_icon, "S:/res/image/icn_small_pos.bin");
    lv_image_set_pivot(ui->fitness_distance_icon, 50,50);
    lv_image_set_rotation(ui->fitness_distance_icon, 0);

    //Write style for fitness_distance_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->fitness_distance_icon, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->fitness_distance_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes fitness_duration_value
    ui->fitness_duration_value = lv_label_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_duration_value, 287, 216);
    lv_obj_set_size(ui->fitness_duration_value, 113, 36);
    lv_label_set_text(ui->fitness_duration_value, "02:53");
    lv_label_set_long_mode(ui->fitness_duration_value, LV_LABEL_LONG_WRAP);

    //Write style for fitness_duration_value, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->fitness_duration_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->fitness_duration_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->fitness_duration_value, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->fitness_duration_value, lv_font_montserratMedium_35_bin, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->fitness_duration_value, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->fitness_duration_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->fitness_duration_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->fitness_duration_value, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->fitness_duration_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->fitness_duration_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->fitness_duration_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->fitness_duration_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->fitness_duration_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->fitness_duration_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes fitness_distance_text
    ui->fitness_distance_text = lv_label_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_distance_text, 287, 281);
    lv_obj_set_size(ui->fitness_distance_text, 131, 19);
    lv_label_set_text(ui->fitness_distance_text, "DISTANCE");
    lv_label_set_long_mode(ui->fitness_distance_text, LV_LABEL_LONG_WRAP);

    //Write style for fitness_distance_text, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->fitness_distance_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->fitness_distance_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->fitness_distance_text, lv_color_hex(0x757575), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->fitness_distance_text, lv_font_montserratMedium_18_bin, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->fitness_distance_text, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->fitness_distance_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->fitness_distance_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->fitness_distance_text, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->fitness_distance_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->fitness_distance_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->fitness_distance_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->fitness_distance_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->fitness_distance_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->fitness_distance_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes fitness_calorie_icon
    ui->fitness_calorie_icon = lv_image_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_calorie_icon, 240, 389);
    lv_obj_set_size(ui->fitness_calorie_icon, 24, 28);
    lv_obj_add_flag(ui->fitness_calorie_icon, LV_OBJ_FLAG_GESTURE_BUBBLE);
    lv_obj_add_flag(ui->fitness_calorie_icon, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->fitness_calorie_icon, "S:/res/image/icn_small_burn.bin");
    lv_image_set_pivot(ui->fitness_calorie_icon, 50,50);
    lv_image_set_rotation(ui->fitness_calorie_icon, 0);

    //Write style for fitness_calorie_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->fitness_calorie_icon, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->fitness_calorie_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes fitness_calorie_value
    ui->fitness_calorie_value = lv_label_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_calorie_value, 287, 389);
    lv_obj_set_size(ui->fitness_calorie_value, 77, 36);
    lv_label_set_text(ui->fitness_calorie_value, "235");
    lv_label_set_long_mode(ui->fitness_calorie_value, LV_LABEL_LONG_WRAP);

    //Write style for fitness_calorie_value, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->fitness_calorie_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->fitness_calorie_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->fitness_calorie_value, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->fitness_calorie_value, lv_font_montserratMedium_35_bin, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->fitness_calorie_value, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->fitness_calorie_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->fitness_calorie_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->fitness_calorie_value, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->fitness_calorie_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->fitness_calorie_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->fitness_calorie_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->fitness_calorie_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->fitness_calorie_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->fitness_calorie_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes fitness_calorie_text
    ui->fitness_calorie_text = lv_label_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_calorie_text, 287, 368);
    lv_obj_set_size(ui->fitness_calorie_text, 110, 19);
    lv_label_set_text(ui->fitness_calorie_text, "CALORIE");
    lv_label_set_long_mode(ui->fitness_calorie_text, LV_LABEL_LONG_WRAP);

    //Write style for fitness_calorie_text, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->fitness_calorie_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->fitness_calorie_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->fitness_calorie_text, lv_color_hex(0x757575), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->fitness_calorie_text, lv_font_montserratMedium_18_bin, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->fitness_calorie_text, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->fitness_calorie_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->fitness_calorie_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->fitness_calorie_text, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->fitness_calorie_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->fitness_calorie_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->fitness_calorie_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->fitness_calorie_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->fitness_calorie_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->fitness_calorie_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes fitness_img_menu
    ui->fitness_img_menu = lv_image_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_img_menu, 445, 177);
    lv_obj_set_size(ui->fitness_img_menu, 12, 121);
    lv_obj_add_flag(ui->fitness_img_menu, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->fitness_img_menu, "S:/res/image/img_menu_2.bin");
    lv_image_set_pivot(ui->fitness_img_menu, 50,50);
    lv_image_set_rotation(ui->fitness_img_menu, 0);

    //Write style for fitness_img_menu, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->fitness_img_menu, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->fitness_img_menu, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes fitness_img_dot
    ui->fitness_img_dot = lv_image_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_img_dot, 449, 202);
    lv_obj_set_size(ui->fitness_img_dot, 8, 8);
    lv_obj_add_flag(ui->fitness_img_dot, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->fitness_img_dot, "S:/res/image/dot.bin");
    lv_image_set_pivot(ui->fitness_img_dot, 50,50);
    lv_image_set_rotation(ui->fitness_img_dot, 0);

    //Write style for fitness_img_dot, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->fitness_img_dot, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->fitness_img_dot, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes fitness_img_1
    ui->fitness_img_1 = lv_image_create(ui->fitness);
    lv_obj_set_pos(ui->fitness_img_1, 401, 328);
    lv_obj_set_size(ui->fitness_img_1, 45, 61);
    lv_obj_add_flag(ui->fitness_img_1, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->fitness_img_1, "S:/res/image/text_home.bin");
    lv_image_set_pivot(ui->fitness_img_1, 50,50);
    lv_image_set_rotation(ui->fitness_img_1, 0);

    //Write style for fitness_img_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->fitness_img_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->fitness_img_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //The custom code of fitness.


    //Update current screen layout.
    lv_obj_update_layout(ui->fitness);

    //Init events for screen.
    events_init_fitness(ui);
}
